{extend name="layout/layout" /}

{block name="content"}
<link href="__STATIC__/plugins/ueditor/ueditor.css" rel="stylesheet" type="text/css" />
<style>
    #edui1_imagescale{display:none !important;}  /*点击上传的图片后出现的拉伸边框*/
    .edui-editor-bottomContainer{display: none;}
</style>
<div class="row">
    <div class="col-md-12">
        <div class="portlet light">
            <div class="portlet-title">
                <div class="caption">
                    <i class="icon-share font-dark"></i>
                    <span class="caption-subject font-dark bold uppercase"> 修改</span>
                </div>
                <div class="actions">
                    <a class="btn btn-circle btn-icon-only btn-default fullscreen" href="javascript:;" data-original-title="" title=""> </a>
                </div>
            </div>
            <div class="portlet-body">
                <form class="form-horizontal" method="post" enctype="multipart/form-data">
                    <div class="form-body">
                        <div class="row">
                            <div class="col-md-9">
                                <div class="form-group">
                                    <label class="control-label col-md-3">
                                        标题
                                        <span class="required">*</span>
                                    </label>
                                    <div class="col-md-9">
                                        <input type="text" class="form-control" placeholder="标题名称，最多40字" id="title" maxlength="40" data-required="1" name="title" value="{$info.title}" required>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-md-9">
                                <div class="form-group">
                                    <label class="control-label col-md-3">
                                        附件
                                    </label>
                                    <div class="col-md-9">
                                        <div id="upload-image">
                                            <span id="upload-btn" data-multi="true" data-ajax="true" data-field="enclosure" data-extensions="jpg,jpeg,png,pdf,mp3,mp4">
                                                <img src="__STATIC__/admin/img/defaultup.png" alt="附件上传" style="width: 100px;height: 100px;" />
                                                （只支持jpg,jpeg,png,pdf,mp3,mp4格式的文件）
                                            </span>
                                            {if $imgfiles}
                                            {volist name="imgfiles" id="vo"}
                                            <span class="multi-image">
                                                <div class="help-block" style="position: relative;">
                                                    <input type="text" class="form-control" disabled="" value="{$vo.imgUrl}">
                                                    <img class="del" style="position: absolute;left:102%;top:100px;" src="/public/static/pages/image/del.png" alt="">
                                                </div>
                                                <input type="hidden" class="imgIds" name="imgIds" value="{$vo.id}">
                                                <input type="hidden" class="file_value" name="enclosure" value="{$vo.imgUrl}">
                                            </span>
                                            {/volist}
                                            {/if}

                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>

                    <div class="row">
                        <div class="col-md-9">
                            <div class="form-group">
                                <label class="control-label col-md-3">
                                    详情<span class="required">*</span>
                                </label>
                                <div class="col-md-9">
                                    <script id="container"  name="content" type="text/plain"></script>
                                    <div id="pro_txt" class="hidden">{$info.content}
                                    </div>
                                    <div id="btn-uploader1">
                                        <a id="pickfiles1" href="javascript:void 0;"></a>
                                        <a id="pickfilesforarticleRadio" href="javascript:;"></a>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                        <div class="row">
                            <div class="col-md-9">
                                <div class="form-group">
                                    <label class="control-label col-md-3">
                                        选择信访人
                                    </label>
                                    <div class="col-md-4">
                                        <button class="form-control addMember-btn" type="button" data-title="选择">{$info.name.p_name}</button>
                                        <input type="hidden" name="user_id" value="{$info.name.userId}">
                                    </div>
                                </div>
                            </div>
                        </div>
                    <input type="hidden" name="type" value="3">
                    <input type="hidden" name="id" value="{$info.id}">
                    <input type="hidden" class="memberIds" value="" >
                    <hr />
                    <div class="row">
                        <div class="form-actions">
                            <div class="col-md-offset-2 col-md-10">
                                <button type="button" id="form-submit" class="btn blue save-btn">
                                    保存 <i class="fa fa-floppy-o"></i>
                                </button>
                                <button type="button" class="btn default" onclick="history.go(-1);">
                                    返回 <i class="fa fa-mail-forward"></i>
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
</div>

<!--动态模糊框-->
<div class="modal fade" id="view-modal" data-backdrop="static" data-keyboard="false" >
    <div class="modal-dialog" style="width:800px; height: 520px;">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">x</button>
                <h4 class="modal-title">参会人员</h4>
            </div>
            <div class="modal-body">
                <div class="row">
                    <div class="col-md-12">
                        <div class="portlet light" style="margin-bottom: 0;">
                            <div class="box-header">
                                <div class="row">
                                    {include file="common:search" /}
                                </div>
                            </div>
                            <div class="portlet-body">
                                <form id="joinmeeting-form" action="" class="form-horizontal" name="ajaxForm">
                                    <div class="">
                                        <table id="member-datatable" class="table table-bordered table-hover dataTable">
                                            <thead>
                                            <th>头像</th>
                                            <th>姓名</th>
                                            <th>职务</th>
                                            <th>操作</th>
                                            </thead>
                                        </table>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<input type="hidden" class="token_url" value="{:url('admin/Image/token')}">
<input type="hidden" class="record_url" value="{:url('admin/Image/record')}">
<input type="hidden" class="memberDatalist_url" value="{:url('/admin/meeting/memberlist')}">
<input type="hidden" class="joinmeetingAdd_url" value="{:url('admin/letter/addjoinletter')}">
<input type="hidden" class="delimage_url" value="{:url('admin/letter/imgDel')}">
{/block}

{block name="pagescript"}
<script>
    var posturl = "{:url('admin/'.strtolower($model).'/editpost')}";
</script>
<script type="text/javascript" src="__STATIC__/plugins/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="__STATIC__/plugins/ueditor/ueditor.all.js"></script>
<script src="__STATIC__/admin/js/qiniu/plupload.full.min.js" type="text/javascript"></script>
<script src="__STATIC__/admin/js/qiniu/qiniu.js" type="text/javascript"></script>
<script src="__STATIC__/admin/js/qiniu/qiniuConfig.js" type="text/javascript"></script>
<script src="__STATIC__/admin/pages/js/ueditor.js" type="text/javascript"></script>
<script src="__STATIC__/admin/pages/js/uploadfile02.js" type="text/javascript"></script>

<script src="__STATIC__/admin/pages/js/letter.js" type="text/javascript"></script>
<script src="__STATIC__/admin/pages/js/joinletter.js" type="text/javascript"></script>
{/block}